package com.bt.springboot.demo.testquestions;

/**
 * @author zkx
 * @Date 2024/3/25 10:26
 */
public class Test1 {

	static class A{
		public void method(){
			System.out.println("A");
		}
	}
	static class B extends A{
		public void method(){
			System.out.println("B");
		}
	}

	public static void main(String[] args) {
		A a = new A();
		B b = new B();
		((A)b).method();
	}
}
